package com.aizhixin.lab.project.template.entity;

import com.aizhixin.lab.common.entity.AbstractStringIdAndCreatedDateEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Temporal;
import java.util.Date;

@Entity(name = "t_exercises_choice")
@Data
public class ExercisesChoice {
    @Id
    @Column(name = "id")
    private String id;
    @Column(name = "created_date")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdDate = new Date();
    @Column(name = "exercises_question_id")
    private String exercisesQuestionId;
    @Column(name = "choice_content")
    private String choiceContent;
    @Column(name = "OPTION_NAME")
    private String option;
   
  
}
